home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / PCCP024.ARJ / MANUAL < prev    next >
Text File  |  1992-05-18  |  5KB  |  129 lines

  1.  
  2.  
  3.           Pete Cann's Communication Package
  4.  
  5.         Portions Copyright (C) 1992 Peter Edward Cann
  6.  
  7.          (Please see the file README for legal junk)
  8.  
  9. This is a set of programs and data files for communication between a
  10. PC and something external, possibly over a modem. It is drastically
  11. different from most other communications programs, in that it is
  12. highly modular and generally requires the user to write batch files
  13. and/or scripts to make use of it. This is what you might call a
  14. "hacker style" paradigm (not to be confused with "cracker", generally
  15. an infantile individual who feels so insignificant that they screw
  16. other people in a desperate attempt to feel powerful). Hackers are
  17. people who are very comfortable with computers, and like to have a
  18. lot of control and to know what's going on. The source code for all
  19. of these programs is included in the distribution, so if you know C
  20. you have all the information I do now.
  21.  
  22. All of the programs give USAGE: information if invoked without
  23. arguments.
  24.  
  25. The centerpiece of the package is TERM. This is a terminal emulator.
  26. It takes an emulation file, which you create or modify with EMUED.
  27. EMUED lets you specify strings to send for any programmable key, and
  28. lets you enter strings of characters and substitution tokens to
  29. invoke functions. These would be the "escape sequences", although
  30. they need not begin with Escape. The token codes are in EMU.H. The
  31. emulation facility also provides a graphics character substitution
  32. table for graphics character commands. TERM and EMUED look in the
  33. directory named by the PCCPPATH environment variable for emulation
  34. files, if PCCPPATH is set. The program CCODES types a hex listing of
  35. display character codes for use when assigning graphics characters in
  36. EMUED.
  37.  
  38. The program MASTERM invokes term with the three or four arguments,
  39. but if you exit term you get a menu for file transfers or beginning a
  40. dribble file. The file transfer programs are three variations on
  41. XMODEM in each direction, and have fairly clear names.
  42.  
  43. The program HOST is a simple one-password host. It is hard-coded for
  44. 8n1 bits. It expects the modem to be in AT&C1&D2 mode, that is,
  45. Carrier Detect conveys information and Data Terminal Ready controls
  46. hookswitch. The shell has no extra protection, because calling the
  47. FTP protocols creates a potential trap-door situation anyway. The
  48. host program presently only operates at the specified speed, because
  49. I don't off-hand know a neat way to autobaud. Lots of modems these
  50. days speed-buffer anyway. The environment of any subschell contains
  51. REMOTE=YES, so you can do IF NOT "%REMOTE%"=="YES" THING in a batch
  52. file, where THING is something that would be bad to do from a
  53. comport, such as run a display editor.
  54.  
  55. The program COMSCRPT runs scripts. It is very powerful, with multiple
  56. branching look-fors, timeouts and retry limits.
  57.  
  58. The script file must have the extension ".SCR". If the PCCPPATH
  59. environment variable is set, the program looks for the script there.
  60. The program loads the script into RAM and then executes it. Lines are
  61. limited to 80 characters. The number of lines is limited to 255.
  62.  
  63. The characters '|' and '~' are special. '|' means CR in < lines and >
  64. lines (LF is stripped for > processing); and newline in ! lines. '~'
  65. means 0.4 second delay in < lines and bell in ! lines. (In > lines it
  66. means itself.) Also, in < lines, `xx (backquote followed by two hex
  67. digits) expands to the specified character code.
  68.  
  69. The first line of the script file is the first three arguments as for
  70. TERM, space-delimited. In subsequent lines, the first character of
  71. each line is the command; the rest of the line (after the delimiting
  72. space) is argument(s). A final string argument may include spaces,
  73. and begins after the delimiting space. Blank lines are ignored.
  74.  
  75. The command characters are as follows:
  76.  
  77. ;
  78.     {introduces comment; line ignored; space not required}
  79.  
  80. : <decimal number 0-255>
  81.     {label for conditional or unconditional goto} 
  82.  
  83. g <label #>
  84.     {goto label #}
  85.  
  86. r <label #> <retries>
  87.     {resets retry count and goes to label if hit more than retries}
  88.  
  89. p <seconds>
  90.     {processes pending look-fors; falls through upon timeout}
  91.     {clears pending look-for list upon completion}
  92.  
  93. > <label #> <string>
  94.     {look for string upon p command; if hit goto label}
  95.     {incoming linefeeds ignored}
  96.  
  97. ? <label #>
  98.     {goto label if Clear To Send or Tx Hold Reg Empty is false}
  99.  
  100. < <string>
  101.     {send string to port}
  102.  
  103. ! <string>
  104.     {send string to console}
  105.  
  106. s <label #> <command line string>
  107.     {run system command line and wait for termination}
  108.     {goto label # if error in running command.com}
  109.     {will not report errors within command string}
  110.  
  111. q <exit code>
  112.     {quit with exit code}
  113.     {codes other than zero under 128 are reserved to internals}
  114.  
  115. When scripting modem commands, which is how you're intended to
  116. configure and dial the modem, try a ~ before and after the at, for
  117. instance:
  118.  
  119.     < ~at~&f&c1&d2|
  120.  
  121. The program SCRCHK types a listing of the argument script file giving
  122. statement numbers, which are not the same as line numbers. It leaves
  123. out blank lines for some reason. It also detects some errors.
  124.  
  125. All of the I/O programs except TERM pay attention to CTS. None of
  126. them do XON/XOFF. The computer is assumed to be fast enough to keep
  127. up. However, since DOS video is very slow, TERM will suspend display
  128. if a buffer overrun threatens.
  129.